package com.lzh.runke.core.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lzh.runke.core.web_base.enums.BaseEnum;

/**
 * 季度枚举
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QuarterEnum implements BaseEnum<Integer> {
    QUARTER_1(1, "第一季度"),
    QUARTER_2(2, "第二季度"),
    QUARTER_3(3, "第三季度"),
    QUARTER_4(4, "第四季度");

    private final Integer value;
    private final String text;

    QuarterEnum(Integer value, String text) {
        this.value = value;
        this.text = text;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String getText() {
        return text;
    }

    @Override
    public String getName() {
        return this.name();
    }
}